#ifndef __MUTEX_H__
#define __MUTEX_H__

#ifdef __cplusplus
extern "C" {
#endif

typedef struct c_mutex * c_mutex_t;

int c_mutex_create(c_mutex_t *mutex, const char *name);

int c_mutex_delete(c_mutex_t *mutex);

int c_mutex_lock(c_mutex_t *mutex);

int c_mutex_unlock(c_mutex_t *mutex);

#ifdef __cplusplus
}
#endif

#endif
